VT-d: fix off-by-one error in RMRR validation
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Sep 2011 17:32:34 +0000 (18:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Sep 2011 17:32:34 +0000 (18:32 +0100)
commit280854080d03a1c0dfefc069a881e9cbb068578a
treeeaa8b110193122b734fa9815fa342e2a4167dd4f
parent47cb1570ad6db5226334ab66cd2c0593ee719b53
VT-d: fix off-by-one error in RMRR validation

(base_addr,end_addr) is an inclusive range, and hence there shouldn't
be a subtraction of 1 in the second invocation of page_is_ram_type().
For RMRRs covering a single page that actually resulted in the
immediately preceding page to get checked (which could have resulted
in a false warning).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/dmar.c